package com.sunda.spmscommon;

/**
 * @program: spms
 * @description: Constans
 * @author: Wayne Wu
 * @create: 2021-03-31 17:45
 **/

public final class Constans {

    public static final Integer SUCCESS = 200;
    public static final Integer FAILURE = 100;

    public static final String SUBMIT_SAP_SUCCESS = "S";
    public static final String SUBMIT_SAP_FAIL = "E";

    /** 车间请购单状态变更日志记录信息 */
    public static final String CREATE_ORDER_WORKSHOP = "新建车间请购单";
    public static final String UPDATE_ORDER_WORKSHOP_HEAD = "更新请购订单表头";
    public static final String UPDATE_ORDER_WORKSHOP_DTL = "更新车间请购单详情";
    public static final String REJECT_ORDER_WORKSHOP = "审批不通过";

    /** 工厂请购单状态变更日志记录信息 */
    public static final String CREATE_ORDER_WERKS = "新建工厂请购单";
    public static final String UPDATE_ORDER_WERKS = "更新工厂请购单";

    /** 工厂请购单提交OA日志记录信息 */
    public static final String SPMS_SUBMIT_OA = "SPMS工厂请购单提交OA";
    public static final String SPMS_RE_SUBMIT_OA = "SPMS工厂请购单重提OA";
    public static final String SUBMIT_OA = "提交OA";
    public static final String SUBMIT_OA_SUCCESS = "提交OA成功";
    public static final String SUBMIT_OA_ERROR = "提交OA失败";
    public static final String OA_APPROVED = "OA 审批通过";
    public static final String OA_REJECT = "OA 审批不通过";
    public static final String RE_SUBMIT_OA = "重新提交OA";

    /** 工厂请购单提交SRM日志记录信息 */
    public static final String SUBMIT_SRM = "提交SRM";
    public static final String SUBMIT_SRM_ERROR = "提交SRM失败";


    /** 工厂获取箱码日志记录信息 */
    public static final String GET_BOX_NO = "通过包装单获取箱码成功";
    public static final String GET_BOX_NO_ERROR = "通过包装单获取箱码失败";
    public static final String GET_BOX_DETAIL = "获取箱内详情成功";
    public static final String GET_BOX_DETAIL_ERROR = "获取箱内详情失败";


    /** 工厂获取交货单号日志记录信息*/
    public static final String GET_SAP_DN = "获取SAP交货单号成功";
    public static final String GET_SAP_DETAIL = "获取SAP交货单详情成功";
    public static final String GET_SAP_DN_ERROR = "获取SAP交货单号失败";
    public static final String GET_SAP_DETAIL_ERROR = "获取SAP交货单详情失败";
    public static final String UPDATE_SAP_DN = "更新SAP交货单表头成功";
    public static final String UPDATE_SAP_DN_ERROR = "更新SAP交货单表头失败";
    public static final String UPDATE_SAP_DN_DTL = "更新SAP贸易货交货单行项目成功";
    public static final String UPDATE_SAP_DN_DTL_ERROR = "更新SAP交货单贸易货行项目失败";
    public static final String UPDATE_SAP_BOX_NOTE = "更新SAP备件货行项目库存成功";
    public static final String UPDATE_SAP_BOX_NOTE_ERROR = "更新SAP备件货";

    public static final String GET_SP_DN_TASK = "获取当前人名下交货单信息(备件货)成功";
    public static final String GET_SP_DN_TASK_ERROR = "获取当前人名下交货单信息(备件货)失败";

    public static final String GET_DN_DATA_SAP = "提交SAP获取返回信息成功";
    public static final String GET_DN_DATA_SAP_ERROR = "提交SAP获取返回信息失败";

    public static final String CHECK_SAP_DELIVERY_NOTE = "更新交货单信息成功";
    public static final String CHECK_SAP_DELIVERY_NOTE_ERROR = "更新交货单信息失败";


    public static final String COMPLETE_SHELF_TASK = "完成上架任务成功";

    /** 交货单表头及详情更新，日志表用户操作记录常量定义 - Wayne 20210415 */
    public static final String UPDATE_DELIVERY_NOTE = "从SAP更新交货单成功";
    public static final String UPDATE_DELIVERY_NOTE_ERROR = "从SAP更新交货单失败";
    public static final String UPDATE_SAP_DELIVERY_NOTE = "更新交货单表头";
    public static final String UPDATE_SAP_DELIVERY_NOTE_DTL = "更新交货单详情";
    public static final String UPDATE_SAP_DELIVERY_NOTE1 = "已到货";
    public static final String UPDATE_SAP_DELIVERY_NOTE3 = "收货中";
    public static final String UPDATE_SAP_DELIVERY_NOTE2 = "已下发到PDA";
    public static final String UPDATE_SAP_DELIVERY_NOTE6 = "已验收待上传SAP";
    public static final String SUBMIT_SAP_DELIVERY_NOTE_SAP = "提交SAP";
    public static final String RESUBMIT_SAP_DELIVERY_NOTE_SAP = "重提SAP";
    public static final String UPDATE_SAP_DELIVERY_NOTE7 = "提交SAP失败";
    public static final String UPDATE_SAP_DELIVERY_NOTE8 = "提交SAP完成";
    public static final String UPDATE_SAP_DELIVERY_NOTE11 = "已关闭";
    public static final String UPDATE_STORAGE_INVENTORY = "已更新储位库存";
    public static final String UPDATE_WHS_INVENTORY = "已更新仓库库存";
    public static final String DELIVERY_NOTE_LOCK = "交货单上锁成功";
    public static final String DELIVERY_NOTE_LOCK_ERROR = "交货单上锁失败";
    public static final String UPDATE_DELIVERY_NOTE_CANCEL = "从SAP撤销交货单成功";
    public static final String UPDATE_DELIVERY_NOTE_CANCEL_ERROR = "从SAP撤销交货单失败";


    /** 上架任务相关操作常量定义 */
    public static final String GENERATE_SHELF_ON_TASK = "上架任务初始化";
    public static final String UPDATE_SHELF_ON_TASK = "上架任务更新";
    public static final String CLOSE_SHELF_ON_TASK = "上架任务完成";

    public static final String GENERATE_DEDUCT_SHELF_TASK="下架任务初始化";
    public static final String UPDATE_DEDUCT_SHELF_TASK="下架任务更新";
    public static final String CLOSE_DEDUCT_SHELF_TASK="下架任务完成";


    /** 仓库、储位台账日志记录信息表述 */
    public static final String TRADE_GOODS_INTO_STORAGE = "自管仓贸易货入储位";
    public static final String GOODS_OUT_STORAGE = "自管仓贸易货出储位";
    public static final String SPARE_PARTS_INTO_WHS = "自管仓备件货入仓库";
    public static final String SPARE_PARTS_OUT_WHS = "自管仓备件货出仓库";
    public static final String SPARE_PARTS_INTO_STORAGE = "自管仓备件货入储位";
    public static final String SPARE_PARTS_OUT_STORAGE = "自管仓备件货出储位";

    /** 装箱单转换成出库任务过程中，装箱单、出库任务操作信息常量定义 */
    public static final String UPDATE_SAP_PACKAGE_LIST = "更新装箱单";
    public static final String SAP_PACKAGE_LIST_TO_WHS_OUT_TASK = "装箱单生成出库任务";
    public static final String SAP_PACKAGE_LIST_LOCK = "装箱单锁定";
    public static final String CLOSE_SAP_PACKAGE_LIST = "装箱单完成";
    public static final String UPDATE_SAP_PACKAGE_Withdraw = "装箱单回撤";


    public static final String WHS_OUT_TASK_GENERATE = "出库任务初始化";
    public static final String WHS_OUT_TASK_UPDATE = "更新出库任务";
    public static final String WHS_OUT_TASK_CLOSE = "出库任务完成";
    public static final String WHS_OUT_TO_SAP = "提交SAP";
    public static final String WHS_OUT_TO_SAP_ERROR = "提交SAP出错";
    public static final String WHS_OUT_CANCEL = "出库任务SAP撤销成功";
    public static final String WHS_OUT_CANCEL_ERROR = "出库任务SAP撤销失败";
    public static final String WHS_OUT_CLOSE = "出库任务关闭";
    public static final String WHS_OUT_CLOSE_ERROR = "出库任务关闭失败";

    /** 盘点单据、盘盈盘亏结果单据操作信息常量定义 */
    public static final String INV_CHECK = "盘点单初始化";
    public static final String INV_CHECK_UPDATE = "盘点单更新";
    public static final String INV_CHECK_CLOSE = "盘点单结束";
    public static final String INV_CHECK_ACTION_PY = "盘盈结果初始化";
    public static final String INV_CHECK_ACTION_PY_UPDATE = "盘盈结果更新";
    public static final String INV_CHECK_ACTION_PY_SAP = "盘盈提交SAP成功";
    public static final String INV_CHECK_ACTION_PY_SAP_ERROR = "盘盈提交SAP失败";
    public static final String INV_CHECK_ACTION_PK = "盘亏结果初始化";
    public static final String INV_CHECK_ACTION_PK_UPDATE = "盘亏结果更新";
    public static final String INV_CHECK_ACTION_PK_SAP = "盘亏提交SAP成功";
    public static final String INV_CHECK_ACTION_PK_SAP_ERROR = "盘亏提交SAP失败";

    /** 物料申请单据操作信息常量定义 */
    public static final String MATERIAL_APPLICATION_INIT = "新建物料申请单";
    public static final String MATERIAL_APPLICATION_UPDATE = "更新物料申请单";
    public static final String MATERIAL_APPLICATION_SUBMIT = "提交物料申请单";

    /** SPMS 系统向外部系统发送 REST、MQ 请求操作常量定义 */
    public static final String MATERIAL_UPDATE_REAL_TIME = "物料实时更新";

    /** 移仓任务操作信息常量定义 */
    public static final String WHS_MOVE_INIT = "新建移仓任务";
    public static final String WHS_MOVE_UPDATE = "更新移仓任务";
    public static final String WHS_MOVE_SAP_SUCCESS = "移仓任务提交SAP成功";
    public static final String WHS_MOVE_SAP_ERROR = "移仓任务提交SAP失败";
    public static final String WHS_MOVE_FINISH = "移仓任务库存更新完成";

    /** WhsOperateLog documentType*/
    public static final String WhsOperateLog_DocumentType_NanShaWHSLog="1";
    public static final String WhsOperateLog_DocumentType_NanShaStorageLog="2";
    public static final String WhsOperateLog_DocumentType_OverSeaWHSLog="3";
    public static final String WhsOperateLog_DocumentType_OverSeaStorageLog="4";

    public static final String WhsOperateLog_OperationType_InHouse="1";
    public static final String WhsOperateLog_OperationType_ShelfOn="2";
    public static final String WhsOperateLog_OperationType_ShelfOff="3";
    public static final String WhsOperateLog_OperationType_OutHouse="4";

    public static final String WHS_OTHER_InHouseUnload="卸货入库";
    public static final String WHS_OTHER_ScrapOut="报废出库";
    public static final String WHS_OTHER_SampleAcquistion="样品领用出库";
    public static final String WHS_OTHER_ToolAcquistion="工具领用出库";
    public static final String WHS_OTHER_OtherAcquistion="其它公司领用出库";
    public static final String WHS_OTHER_InHousePresenter="赠品入库";
    public static final String WHS_OTHER_OutHouseReturn="退货出库";
    public static final String WHS_OTHER_OutHouseOEM="委外加工发货出库";
    public static final String WHS_OTHER_PartAdjustment="串货调整";
    public static final String WHS_OTHER_PartAdjustment_Out="串货调整出";
    public static final String WHS_OTHER_PartAdjustment_In="串货调整入";
    public static final String WHS_OTHER_PurchaseInHour="采购入库";
    public static final String WHS_OTHER_MoveIn311="仓库移仓-其它移入";
    public static final String WHS_OTHER_MoveOut311="仓库移仓-其它移入";
    public static final String WHS_OTHER_OutHouseByShip="其它出入库-海运出库";


    public static final String WHS_PositionMove="库内移位";
    public static final String WHS_PositionMove_ShelfOff="库内移位储位下架";
    public static final String WHS_PositionMove_ShelfOn="库内移位储位上架";

    public static final String WHS_WhsOut_Withdraw_ShelfOn="自管仓贸易出库撤销上架";
    public static final String WHS_WhsOut_Withdraw="自管仓贸易出库撤销";
    public static final String WHS_WhsIn_Withdraw_ShelfOffX="自管仓备件入库撤销下架";
    public static final String WHS_WhsIn_WithdrawX="自管仓备件入库撤销";
    public static final String WHS_WhsIn_Withdraw_ShelfOffM="自管贸易件入库撤销下架";
    public static final String WHS_WhsIn_WithdrawM="自管仓贸易入库撤销";

    public static final String WHS_OUT_Status_Pending="0";
    public static final String WHS_OUT_Status_InProcessing="1";
    public static final String WHS_OUT_Status_PendingSyncSAP="2";
    public static final String WHS_OUT_Status_Completed="3";
    public static final String WHS_OUT_Status_FailedSAP="5";
    public static final String WHS_OUT_Status_SuccessedSAP="4";

    public static final String WHS_OUT_WITHDRAW_EndShelfOff="自管仓备件出库回撤终止";
    public static final String WHS_OUT_WITHDRAW="自管仓备件出库回撤";

    /** 转储任务单据操作信息常量定义-SPMS转储单据状态（0删除；1草稿；2转出可执行；3转出完成；4转出提交SAP成功-计算库存；
     * 5转出提交SAP失败；6转入可执行；7转入完成；8转入提交SAP成功-计算库存；9转入提交SAP失败；） */
    public static final String WHS_DUMP_DELETE = "转储任务删除";
    public static final String WHS_DUMP_CREATE = "创建转储任务";
    public static final String WHS_DUMP_OUT_UPDATE = "转出更新";
    public static final String WHS_DUMP_OUT_DONE = "转出完成";
    public static final String WHS_DUMP_OUT_SAP = "转出提交SAP获取采购订单成功";
    public static final String WHS_DUMP_OUT_SAP_ERROR = "转出提交SAP获取采购订单失败";
    public static final String WHS_DUMP_OUT_SAP_DN = "转出提交SAP获取交货单成功";
    public static final String WHS_DUMP_OUT_SAP_DN_ERROR = "转出提交SAP获取交货单失败";
    public static final String WHS_DUMP_IN_UPDATE = "转入更新";
    public static final String WHS_DUMP_IN_DONE = "转入完成";
    public static final String WHS_DUMP_IN_SAP = "转入提交SAP成功";
    public static final String WHS_DUMP_IN_SAP_ERROR = "转入提交SAP失败";
    public static final String WHS_DUMP_DONE = "转储任务完成";

    /** MQ 系统相关发送或接收消息日志记录 */
    public static final String SEND_MSG = "1";
    public static final String RECEIVED_MSG = "2";
    public static final String REQUEST_DESC_SEND = "SPMS MQ系统发送消息到ESB";
    public static final String REQUEST_DESC_SEND_ERROR = "发送消息到ESB失败";
    public static final String REQUEST_SEND_SRM = "工厂请购单Rest发送到SRM";
    public static final String REQUEST_SEND_SRM_ERROR = "工厂请购单Rest发送到SRM失败";
    public static final String REQUEST_DESC_RECEIVED = "SPMS MQ系统接收ESB消息";
}
